<?php
if (!defined('EXPONENT')) exit('');

if (exponent_permissions_check('development',exponent_core_makeLocation('administrationmodule'))) {
    if (!defined('SYS_CONFIG')) include_once(BASE.'subsystems/config.php');
    if(isset($_REQUEST['locale']))
    {
        $locale = $_REQUEST['locale'];
    }
    if($locale=='vn_VI')
    {
        $value = 'vn_VI';
    }
    else
    {
        $value = 'eng_US';
    }
    exponent_config_change('USE_LANG', $value);
    redirect_to(array('module'=>'administrationmodule', 'action'=>'lang_mange'));
} else {
    echo SITE_403_HTML;
}
?>
